using UnityEngine;
using System.Collections;

public class FinalUI : MonoBehaviour {

	private AlienGenome playerGenome ;
	public AlienStatsUI featuredStats;
	public GUISkin	mainSkin;
	
	
	
	public int wins;
	public int loses;
	public int generations;
	
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	public void setPlayerAlien(AlienGenome playerAlien)
	{
		GameObject newAlien= AlienMating.duplicateAlien(playerAlien);
		featuredStats.attachAlien(newAlien.GetComponent<AlienGenome>());
		featuredStats.gameObject.transform.localScale= new Vector3(3,3,3);
	}
		
	private Vector2 scroll= new Vector2(0,0);
	void OnGUI() {
		GUI.skin= mainSkin;
		
		string finalText="So you think that you have do it?\n\nCreated an ultimate victor. Well that's impressive. \n\nI guess the data speak for itself.\n\n\n\tWins:\t" 
				+ wins
				+"\n\n\tLoses:\t" + loses
				+"\n\n\tGenerations:\t" + generations; 
		GUILayout.BeginVertical();
		GUILayout.BeginScrollView(scroll);
			GUILayout.TextArea(finalText);
		GUILayout.EndScrollView();
		
		
		string credits= "Designed and Created By: \tJared Jackson, \t\tMichael Tillotson, \t\t& \t\tDavid Ducrest\nArt By: \t\t\t\t\t\t\t\t\t\tJared Jackson\nAudio By: \t\t\t\t\t\t\t\t\tMichael Tillotson\nProgramming By: \t\t\t\t\tDavid Ducrest \t\t& \t\tJared Jackson";	
		GUI.Label(new Rect(100, Screen.height-100, 300, 275), credits, mainSkin.GetStyle("Credits"));		
			
		GUILayout.EndVertical();
	}
}
